
import { createRoot } from 'react-dom/client'
import './index.css'
import { RouterProvider } from 'react-router-dom'
import routes from './router'
import { Provider as StoreProvider } from 'react-redux'
import store, { persistor } from './qie'
import { PersistGate } from 'redux-persist/integration/react'

createRoot(document.getElementById('root')).render(
   <StoreProvider store={store}>
      <PersistGate
         loading={null}
         persistor={persistor}
      >
         <RouterProvider
            router={routes}
            future={{ v7_startTransition: true }}
         >

         </RouterProvider>
      </PersistGate>
   </StoreProvider>
)
